Skip to content

Auth: remove Better Auth and cut over to Clerk#109

Draft
prazgaitis wants to merge 2 commits into
mainfrom
chore/clerk-cutover-remove-better-auth
Draft

Auth: remove Better Auth and cut over to Clerk#109
prazgaitis wants to merge 2 commits into
mainfrom
chore/clerk-cutover-remove-better-auth

Conversation

@prazgaitis

Copy link
Copy Markdown
Owner

Summary

  • remove Better Auth runtime and dependency footprint from web + backend
  • make auth Clerk-only across Next app, Convex auth config, and provider wiring
  • delete Better Auth components/helpers/tests/patch and update env/docs/CI references

Key Changes

  • web auth flow now uses Clerk sign-in/sign-up and Clerk-backed Convex tokens
  • /api/auth/[...all] replaced with explicit 404 stub (legacy endpoint removed)
  • backend no longer registers Better Auth routes/components
  • Convex auth config now uses Clerk issuer/audience envs only

Verification

  • pnpm install
  • pnpm -F web typecheck
  • pnpm typecheck
  • pnpm lint
  • pnpm -F web test --run tests/auth/auth-smoke.test.ts tests/lib/rebuild-response.test.ts

Notes

  • backend package-level tests were not run (no direct test script configured in packages/backend/package.json)

@vercel

vercel Bot commented Feb 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
march-fitness-2025 Error Error Feb 25, 2026 5:17am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant